package cn.zhaoyuening.zshop4j.common.bean;

/**
 * Created by Zhao on 2017/4/8.
 * 用于文件上传时返回上传信息
 * error为1代表错误 为0代表成功
 */
public class FileUploadBean {
    private String url;
    //为1代表错误
    //为0代表成功
    private int error;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getError() {
        return error;
    }

    public void setError(boolean isSuccess) {
        //error为1代表错误 为0代表成功
        this.error = isSuccess?0:1;
    }
}
